package com.woniuxy.cloud.carl.carlstation.common;


import com.woniuxy.result.Messagable;

public enum CarlstationResultCode implements Messagable {

    CODE_ILLEGAL(3000, "非法验证码"),
    NOT_LOGIN(3001,"未登录"),
    MANAGER_NOT_EXIST(3003,"账号不存在"),
    PWD_NOT_MATCH(3003,"密码错误"),
    PARAMETER_ILLEGAL(3004,"参数异常"),
    MANAGER_REGISTERED(3005,"用户已注册"),
    CODE_USE_TO_MUCH(3006,"验证码发送过于频繁一分钟后再试"),
    ACCOUNT_CODE_MUCH_5(3007,"验证码发送不超过5次"),
    PHONE_NOT_EXIST(3009,"手机号码不能为空"),
    MANAGER_IS_EXIST(3010,"该手机号已被注册"),
    ADDRESS_DOUBLE_DEFAULT(3008,"已经时默认收获地址，无需重复操作")

    ;

    private Integer code;
    private String message;

    private CarlstationResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
